﻿using UnityEngine;
using System.Collections;

public class MatchSpawner : MonoBehaviour {

	public GameObject matchPreFab;
	// Use this for initialization
	void Start () {

		CreateNewMatch();
	}
	void CreateNewMatch()
	{
		GameObject match = (GameObject)Instantiate(matchPreFab,this.transform.position,this.transform.rotation);
		match.transform.parent = this.transform.parent;

	}
	void NewMatch()
	{
		CreateNewMatch();
	}
	// Update is called once per frame
	void Update () {

	}
}
